<%= form_for [messageboard, topic],
             html: { class: "thredded--form #{local_assigns[:css_class]}", 'data-thredded-topic-form' => true } do |form| %>
  <ul class="thredded--form-list on-top">
    <li class="title">
      <%= form.label :title, t('thredded.topics.form.title_label') %>
      <%= form.text_field :title, placeholder: placeholder, required: true %>
    </li>

    <% if form.object.categories.any? %>
      <li class="category">
        <%= form.select :category_ids,
                        form.object.category_options,
                        {},
                        { multiple: true, 'data-placeholder' => t('thredded.topics.form.categories_placeholder') } %>
      </li>
    <% end %>

    <%= render 'thredded/posts_common/form/content_field',
               form:          form,
               content_label: t('thredded.topics.form.content_label') %>
    <%= render 'thredded/topics/topic_form_admin_options', form: form %>

    <li><%= form.submit 'Create New Topic', class: 'thredded--form--submit' %></li>
  </ul>
<% end %>
